Closed
Bug 903311
Opened 11 years ago
Closed 11 years ago
Remove support for chrome access to history[n].
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: jst, Assigned: jst)
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(1 file)
5.97 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
From a quick grep in the source tree it seems like there's only a handful of users of window.history[n] in our tree, and per bz's bug 859707 comment 8 the existence of the chrome only history[n] getter is detectable by web content. It's not part of the web platform, we should remove it in favor of an explicit chrome only method whose existence is not detectable by web content.
Reporter | ||
Comment 1•11 years ago
|
||
Actually, I can't find a single usage of history[n] in our whole repo. Nor can I find one in the AMO mxr. Also, seems history.current, history.previous, and history.next are also completely unused in our repo.
Comment 2•11 years ago
|
||
Seems fairly plausible; http://people.mozilla.org/~choller/firefox/coverage/mc-coverage-20130210-29dd80c95b7d/dom/base/nsDOMClassInfo.cpp.gcov.html and http://people.mozilla.org/~choller/firefox/coverage/mc-coverage-20130210-29dd80c95b7d/dom/base/nsHistory.cpp.gcov.html report no hits
Comment 3•11 years ago
|
||
Johnny, do you plan to do this, or does it need another owner?
Flags: needinfo?(jst)
Reporter | ||
Comment 4•11 years ago
|
||
This is green on try, surprisingly.
Attachment #788486 -
Flags: review?(bzbarsky)
Flags: needinfo?(jst)
Reporter | ||
Comment 5•11 years ago
|
||
Oh, and the attached patch applies on top of the patch in bug 859707.
Comment 6•11 years ago
|
||
Comment on attachment 788486 [details] [diff] [review] Remove all chrome only methods from History. Good deal!
Attachment #788486 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8fbc8f215653
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8fbc8f215653 \o/
Assignee: nobody → jst
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Comment 9•11 years ago
|
||
Updated: https://developer.mozilla.org/en-US/docs/Web/API/window.history
Keywords: dev-doc-complete
Comment 10•11 years ago
|
||
I see some instances of this in the Add-ons MXR, mostly from libraries.
Keywords: addon-compat
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Jorge Villalobos [:jorgev] from comment #10) > I see some instances of this in the Add-ons MXR, mostly from libraries. Hmm, can you share some examples? I thought I looked, and got nothing, but it was quite a while ago... Thanks.
Comment 12•11 years ago
|
||
Searching for window.history shows several results: https://mxr.mozilla.org/addons/search?string=window.history For example: https://mxr.mozilla.org/addons/source/8062/chrome/content/ode/js/main.js#840
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•